package com.drawu.drawuspring.service;

import com.drawu.drawuspring.domain.DTO.CollectBehaviorDto;
import com.drawu.drawuspring.domain.po.CollectRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 收藏记录表 服务类
 * </p>
 *
 * @author hui
 * @since 2024-10-12
 */
public interface ICollectRecordService extends IService<CollectRecord> {

    /**
     * 保存收藏记录
     */
    void saveCollectRecord(CollectBehaviorDto dto);

    /**
     * 删除收藏记录
     */
    void deleteCollectRecord(CollectBehaviorDto dto);

    /**
     * 获取用户收藏的帖子id列表
     */
    Set<Integer> getCollectsRecordList(List<Integer> postIds);
}
